#define _CRT_SECURE_NO_WARNINGS

#pragma once
#include "list.hpp"

int main()
{
	//std::list<int> ls1;
	//ls1.push_back(10);
	//ls1.push_back(20);
	//ls1.push_back(30);
	//ls1.push_back(40);
	////std::list<int> ls2(ls1.begin(),ls1.end());
	////ls1.pop_back();
	////ls1.pop_front();
	//auto it = find(ls1.begin(),ls1.end(), 20);
	//ls1.erase(it++);
	//
	//*it = 100;
	//cout << *it << endl;
	//for (auto ch : ls1)
	//{
	//	cout << ch << " ";
	//}
	//cout << endl;
	//for (auto ch : ls2)
	//{
	//	cout << ch << " ";
	//}

	std::vector<int> ls1;
	ls1.push_back(10);
	ls1.push_back(20);
	ls1.push_back(30);
	ls1.push_back(40);
	auto it = find(ls1.begin(), ls1.end(), 20);
	ls1.erase(it++);

	*it = 100;
	cout << *it << endl;
	for (auto ch : ls1)
	{
		cout << ch << " ";
	}
	cout << endl;
	return 0;
}